/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * OpenAPI spec version: 1.0
 * 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */

package net.jdcloud.HufuDatacubeService.model.algorithmregisterpost;

import com.jdcloud.sdk.apim.annotation.*;
import java.util.Objects;
import java.util.Arrays;
import java.io.Serializable;
import java.io.IOException;
import javax.xml.bind.annotation.*;
import com.google.gson.annotations.SerializedName;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;

/**
 * AlgorithmRegisterPOSTBody
 */
@XmlRootElement(name = "algorithmRegisterPOSTBody")
@XmlAccessorType(XmlAccessType.FIELD)

public class AlgorithmRegisterPOSTBody implements Serializable {

    private static final long serialVersionUID = 1L;

    @XmlElement(name = "scene_id")
    @SerializedName("scene_id")
    private String sceneId = null;

    @XmlElement(name = "algorithm_name")
    @SerializedName("algorithm_name")
    private String algorithmName = null;

    @XmlElement(name = "algorithm_label")
    @SerializedName("algorithm_label")
    private String algorithmLabel = null;

    @XmlElement(name = "platform")
    @SerializedName("platform")
    private String platform = null;

    @XmlElement(name = "oss_path")
    @SerializedName("oss_path")
    private String ossPath = null;

    @XmlElement(name = "algorithm_type")
    @SerializedName("algorithm_type")
    private String algorithmType = null;

    @XmlElement(name = "algorithm_desc")
    @SerializedName("algorithm_desc")
    private String algorithmDesc = null;

    @XmlElement(name = "engine")
    @SerializedName("engine")
    private String engine = null;

    @XmlElement(name = "develop_language")
    @SerializedName("develop_language")
    private String developLanguage = null;

    @XmlElement(name = "action")
    @SerializedName("action")
    private String action = null;

    @XmlElement(name = "oss_bucket")
    @SerializedName("oss_bucket")
    private String ossBucket = null;

    @XmlElement(name = "entry_point")
    @SerializedName("entry_point")
    private String entryPoint = null;

    @XmlElement(name = "algorithm_args")
    @SerializedName("algorithm_args")
    private String algorithmArgs = null;

    public AlgorithmRegisterPOSTBody sceneId(String sceneId) {
        this.sceneId = sceneId;
        return this;
    }

    /**
     * 场景id
     * @return sceneId
    **/

    public String getSceneId() {
        return sceneId;
    }

    public void setSceneId(String sceneId) {
        this.sceneId = sceneId;
    }

    public AlgorithmRegisterPOSTBody algorithmName(String algorithmName) {
        this.algorithmName = algorithmName;
        return this;
    }

    /**
     * 算法名称
     * @return algorithmName
    **/

    public String getAlgorithmName() {
        return algorithmName;
    }

    public void setAlgorithmName(String algorithmName) {
        this.algorithmName = algorithmName;
    }

    public AlgorithmRegisterPOSTBody algorithmLabel(String algorithmLabel) {
        this.algorithmLabel = algorithmLabel;
        return this;
    }

    /**
     * 算法标签
     * @return algorithmLabel
    **/

    public String getAlgorithmLabel() {
        return algorithmLabel;
    }

    public void setAlgorithmLabel(String algorithmLabel) {
        this.algorithmLabel = algorithmLabel;
    }

    public AlgorithmRegisterPOSTBody platform(String platform) {
        this.platform = platform;
        return this;
    }

    /**
     * 开发平台
     * @return platform
    **/

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public AlgorithmRegisterPOSTBody ossPath(String ossPath) {
        this.ossPath = ossPath;
        return this;
    }

    /**
     * 文件路径
     * @return ossPath
    **/

    public String getOssPath() {
        return ossPath;
    }

    public void setOssPath(String ossPath) {
        this.ossPath = ossPath;
    }

    public AlgorithmRegisterPOSTBody algorithmType(String algorithmType) {
        this.algorithmType = algorithmType;
        return this;
    }

    /**
     * 算法类型
     * @return algorithmType
    **/

    public String getAlgorithmType() {
        return algorithmType;
    }

    public void setAlgorithmType(String algorithmType) {
        this.algorithmType = algorithmType;
    }

    public AlgorithmRegisterPOSTBody algorithmDesc(String algorithmDesc) {
        this.algorithmDesc = algorithmDesc;
        return this;
    }

    /**
     * 算法描述
     * @return algorithmDesc
    **/

    public String getAlgorithmDesc() {
        return algorithmDesc;
    }

    public void setAlgorithmDesc(String algorithmDesc) {
        this.algorithmDesc = algorithmDesc;
    }

    public AlgorithmRegisterPOSTBody engine(String engine) {
        this.engine = engine;
        return this;
    }

    /**
     * 引擎框架
     * @return engine
    **/

    public String getEngine() {
        return engine;
    }

    public void setEngine(String engine) {
        this.engine = engine;
    }

    public AlgorithmRegisterPOSTBody developLanguage(String developLanguage) {
        this.developLanguage = developLanguage;
        return this;
    }

    /**
     * 开发语言
     * @return developLanguage
    **/

    public String getDevelopLanguage() {
        return developLanguage;
    }

    public void setDevelopLanguage(String developLanguage) {
        this.developLanguage = developLanguage;
    }

    public AlgorithmRegisterPOSTBody action(String action) {
        this.action = action;
        return this;
    }

    /**
     * 行为
     * @return action
    **/

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public AlgorithmRegisterPOSTBody ossBucket(String ossBucket) {
        this.ossBucket = ossBucket;
        return this;
    }

    /**
     * ossBucket
     * @return ossBucket
    **/

    public String getOssBucket() {
        return ossBucket;
    }

    public void setOssBucket(String ossBucket) {
        this.ossBucket = ossBucket;
    }

    public AlgorithmRegisterPOSTBody entryPoint(String entryPoint) {
        this.entryPoint = entryPoint;
        return this;
    }

    /**
     * 启动项
     * @return entryPoint
    **/

    public String getEntryPoint() {
        return entryPoint;
    }

    public void setEntryPoint(String entryPoint) {
        this.entryPoint = entryPoint;
    }

    public AlgorithmRegisterPOSTBody algorithmArgs(String algorithmArgs) {
        this.algorithmArgs = algorithmArgs;
        return this;
    }

    /**
     * 算法参数
     * @return algorithmArgs
    **/

    public String getAlgorithmArgs() {
        return algorithmArgs;
    }

    public void setAlgorithmArgs(String algorithmArgs) {
        this.algorithmArgs = algorithmArgs;
    }


    @Override
    public boolean equals(java.lang.Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        AlgorithmRegisterPOSTBody algorithmRegisterPOSTBody = (AlgorithmRegisterPOSTBody) o;
        return Objects.equals(this.sceneId, algorithmRegisterPOSTBody.sceneId) &&
        Objects.equals(this.algorithmName, algorithmRegisterPOSTBody.algorithmName) &&
        Objects.equals(this.algorithmLabel, algorithmRegisterPOSTBody.algorithmLabel) &&
        Objects.equals(this.platform, algorithmRegisterPOSTBody.platform) &&
        Objects.equals(this.ossPath, algorithmRegisterPOSTBody.ossPath) &&
        Objects.equals(this.algorithmType, algorithmRegisterPOSTBody.algorithmType) &&
        Objects.equals(this.algorithmDesc, algorithmRegisterPOSTBody.algorithmDesc) &&
        Objects.equals(this.engine, algorithmRegisterPOSTBody.engine) &&
        Objects.equals(this.developLanguage, algorithmRegisterPOSTBody.developLanguage) &&
        Objects.equals(this.action, algorithmRegisterPOSTBody.action) &&
        Objects.equals(this.ossBucket, algorithmRegisterPOSTBody.ossBucket) &&
        Objects.equals(this.entryPoint, algorithmRegisterPOSTBody.entryPoint) &&
        Objects.equals(this.algorithmArgs, algorithmRegisterPOSTBody.algorithmArgs);
    }

    @Override
    public int hashCode() {
        return Objects.hash(sceneId, algorithmName, algorithmLabel, platform, ossPath, algorithmType, algorithmDesc, engine, developLanguage, action, ossBucket, entryPoint, algorithmArgs);
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class AlgorithmRegisterPOSTBody {\n");
        
        sb.append("    sceneId: ").append(toIndentedString(sceneId)).append("\n");
        sb.append("    algorithmName: ").append(toIndentedString(algorithmName)).append("\n");
        sb.append("    algorithmLabel: ").append(toIndentedString(algorithmLabel)).append("\n");
        sb.append("    platform: ").append(toIndentedString(platform)).append("\n");
        sb.append("    ossPath: ").append(toIndentedString(ossPath)).append("\n");
        sb.append("    algorithmType: ").append(toIndentedString(algorithmType)).append("\n");
        sb.append("    algorithmDesc: ").append(toIndentedString(algorithmDesc)).append("\n");
        sb.append("    engine: ").append(toIndentedString(engine)).append("\n");
        sb.append("    developLanguage: ").append(toIndentedString(developLanguage)).append("\n");
        sb.append("    action: ").append(toIndentedString(action)).append("\n");
        sb.append("    ossBucket: ").append(toIndentedString(ossBucket)).append("\n");
        sb.append("    entryPoint: ").append(toIndentedString(entryPoint)).append("\n");
        sb.append("    algorithmArgs: ").append(toIndentedString(algorithmArgs)).append("\n");
        sb.append("}");
        return sb.toString();
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
        if (o == null) {
          return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }

}

